<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('meeting/hire/lists')}">租赁服务管理</a></li>
        <li><a href="{:url('meeting/hire/add')}">添加租赁服务</a></li>
        <li><a href="{:url('meeting/hire/classList')}">服务分类</a></li>
        <li class="active"><a href="{:url('add')}">添加租赁服务</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('meeting/hire/add')}">
        <div class="form-group">
            <label for="input-score" class="col-sm-2 control-label">服务名</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-score" name="hire_name" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="input-coin" class="col-sm-2 control-label">编号</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-coin" name="code" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="input-coin" class="col-sm-2 control-label">分类</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="class_id" id="">
                    <foreach name="class_list" item="class">
                        <option value="{$class['class_id']}">{$class['class_name']}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="input-coin" class="col-sm-2 control-label">分类</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="class_id" id="">
                    <foreach name="type" item="v" key="k">
                        <option  value="{$k}">{$v}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="input-coin" class="col-sm-2 control-label">图片</label>
            <div class="col-md-6 col-sm-10">
                <input type="hidden" name="image" id="image" value="">
                <a href="javascript:uploadOneImage('图片上传','#image');">
                    <img src="__TMPL__/public/assets/images/default-thumbnail.png" id="thumb-preview"
                         width="135" style="cursor: hand"/>
                </a>
                <input type="button" class="btn btn-sm"
                       onclick="$('#thumb-preview').attr('src','__TMPL__/public/assets/images/default-thumbnail.png');$('#image').val('');return false;"
                       value="取消图片">
            </div>
        </div>

        <div class="form-group">
            <label for="input-coin" class="col-sm-2 control-label">描述</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-coin" name="description" value="">
            </div>
        </div>

        <div class="form-group">
            <label for="input-cycle_time" class="col-sm-2 control-label">押金</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-cycle_time" name="deposit" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="input-reward_number" class="col-sm-2 control-label">租金</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-reward_number" name="price"
                       value="">
            </div>
        </div>
        <div class="form-group">
            <label for="input-reward_number" class="col-sm-2 control-label">数量</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-reward_number" name="total"
                       value="">
            </div>
        </div>
        <div class="form-group">
            <label for="input-reward_number" class="col-sm-2 control-label">已用数量</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-reward_number" name="used"
                       value="">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

</script>
</body>
</html>